// 通用响应类型
export interface ApiResponse<T = any> {
  code: number;
  message: string;
  data: T;
  success: boolean;
}

// 登录表单类型
export interface LoginForm {
  username?: string;
  password?: string;
  mobile?: string;
  code?: string;
  tenantName?: string;
}

// 用户信息类型
export interface UserInfo {
  id: string;
  username: string;
  nickname: string;
  avatar?: string;
  email?: string;
  mobile?: string;
  roles: string[];
  permissions: string[];
}

// 路由菜单类型
export interface MenuItem {
  key: string;
  label: string;
  icon?: React.ReactNode;
  path?: string;
  children?: MenuItem[];
}